export default defineRoute(() => [
  {
    path: '/affiliate',
    name: RN.AFFILIATE,
    component: () => import('./index.vue'),
    async beforeEnter(to, from) {
      const hsData = await apis.apiInitHandshake(undefined);

      return hsData.is_agent === 0 ? true : from;
    },
    // children: [
    //   {
    //     path: 'index',
    //     name: RN.AFFILIATE,
    //     component: () => import('./index.vue'),
    //   },
    // ],
  },
]);
